#include<iostream>
#include<vector>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	int sum=a+b;
	if(sum==0){
		cout<<sum;
		return 0;
	}else if(sum<0){
		cout<<'-';
		sum*=-1;
	}
	vector<int>v;
	while (sum!=0)
	{
		v.push_back(sum%10);
		sum=sum/10;
	}
	for (int i =v.size()-1; i >= 0; i--)
	{
		cout<<v[i];
		if (i%3==0&&i>0)
		{
			cout<<',';
		}
		
	}
	
	return 0;
	
} 